package com.threegroup.android3grouppersonality.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.threegroup.android3grouppersonality.R;
import com.threegroup.android3grouppersonality.ui.fragment.HomeFragment;
import com.threegroup.android3grouppersonality.utils.Tool;

public class InstallActivity extends AppCompatActivity implements View.OnClickListener {

    private Button  btn_inEext;
    private LinearLayout linearLayout_inChange,linearLayout_inBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_install);
        init();
    }

    private void init() {
        linearLayout_inChange = findViewById(R.id.ll_inChange);
        linearLayout_inBtn = findViewById(R.id.ll_inBtn);
        btn_inEext=findViewById(R.id.btn_inEext);
        linearLayout_inChange.setOnClickListener(this);
        btn_inEext.setOnClickListener(this);
        linearLayout_inBtn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.ll_inChange:
                Intent intent = new Intent(this, ChangePassword.class);
                startActivityForResult(intent, Tool.To_ChangePassword);
                break;
            case R.id.btn_inEext:
                Intent intent1 = new Intent(this, HomeFragment.class);
                startActivityForResult(intent1, Tool.To_HomeFragement);
                break;
        }
    }
}
